//
//  CheckOnMainViewController.m
//  OAProject
//
//  Created by yhj on 2017/2/20.
//  Copyright © 2017年 cdnunion. All rights reserved.
//

#import "CheckOnMainViewController.h"
#import "SignInViewController.h"
#import "StatisticsViewController.h"


@interface CheckOnMainViewController ()

@end

@implementation CheckOnMainViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    // 初始化样式
    [self initView];

    // 添加子控制器
    [self addChildVC];

}

// 初始化样式
-(void)initView
{
    // 设置标题栏样式
    [self setUpTitleEffect:^(UIColor *__autoreleasing *titleScrollViewColor, UIColor *__autoreleasing *norColor, UIColor *__autoreleasing *selColor, UIFont *__autoreleasing *titleFont, CGFloat *titleHeight, CGFloat *titleWidth)
     {
         *titleScrollViewColor=[UIColor whiteColor];
         *norColor=Color666666;
         *selColor=[UIColor blueColor];
         *titleWidth=APPW/2;
     }];

//    // 设置下标
//    [self setUpUnderLineEffect:^(BOOL *isUnderLineDelayScroll, CGFloat *underLineH, UIColor *__autoreleasing *underLineColor, BOOL *isUnderLineEqualTitleWidth) {
//        *isUnderLineDelayScroll=YES;
//        *underLineColor=[UIColor redColor];
//    }];
}

// 添加子控制器
-(void)addChildVC
{
    // 签到
    SignInViewController *signInViewController=[SignInViewController new];
    signInViewController.title=@"签到";
    [self addChildViewController:signInViewController];

    // 统计
    StatisticsViewController *statisticsViewController=[StatisticsViewController new];
    statisticsViewController.title=@"统计";
    [self addChildViewController:statisticsViewController];

}


@end
